<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
 <table width="100%" cellpadding="0" cellspacing="0" border="1">
 <tr>
 
  <td width="50" nowrap="nowrap" class="td_l_c">编号</td>
  
 <td width="180" nowrap="nowrap" class="td_l_l">客户名称</td>
  
 <?php if (isset($config['area'])){?>
 <td width="100" nowrap="nowrap" class="td_l_c">所在地区</td>
 <?php }?>
 <?php if (isset($config['address'])){?>
 <td width="100" nowrap="nowrap" class="td_l_c">详细地址</td>
 <?php }?>
 <?php if (isset($config['type'])){?>
 <td width="100" nowrap="nowrap" class="td_l_c">客户类型</td>
 <?php }?>
 <?php if (isset($config['qq'])){?>
 <td width="100" nowrap="nowrap" class="td_l_c">联系QQ</td>
 <?php }?>
 <?php if (isset($config['trade'])){?>
 <td width="120" nowrap="nowrap" class="td_l_c">所属行业</td>
 <?php }?>

 <?php if (isset($config['start'])){?>
 <td width="80" nowrap="nowrap" class="td_l_c">客户级别</td>
 <?php }?>
 <?php if (isset($config['source'])){?>
 <td width="80" nowrap="nowrap" class="td_l_c">客户来源</td>
 <?php }?>
 <?php if (isset($config['linkman'])){?>
 <td width="80" nowrap="nowrap" class="td_l_c">联 系 人</td>
 <?php }?>
 <?php if (isset($config['job'])){?>
 <td width="80" nowrap="nowrap" class="td_l_c">职位</td>
 <?php }?>
 <?php if (isset($config['mobile'])){?> 
 <td width="100" nowrap="nowrap" class="td_l_c">手机号码</td>
 <?php }?>
 <?php if (isset($config['adddate'])){?>
 <td width="100" nowrap="nowrap" class="td_l_c">录入时间</td>
 <?php }?>


 <?php if (isset($config['adduser'])){?>
 <td width="80" nowrap="nowrap" class="td_l_c">业务员</td>
 <?php }?>
 
 </tr>

 <?php foreach($list as $arr=>$row) {?>
 <tr class="tr">
  
 <td class="td_l_c"><?php echo $row['id']?></td>
  
 <td class="td_l_l vtip"><?php echo $row['name']?></td>
  
 <?php if (isset($config['area'])){?>
 <td class="td_l_c"><?php echo $row['area1']?>&nbsp;&nbsp;<?php echo $row['area2']?></td>
 <?php }?>
 <?php if (isset($config['address'])){?>
 <td class="td_l_c"><?php echo $row['address']?></td>
 <?php }?>
 <?php if (isset($config['type'])){?>
 <td class="td_l_c"><?php echo $row['type']?></td>
 <?php }?>
 <?php if (isset($config['qq'])){?>
 <td class="td_l_c"><?php echo $row['qq']?></td>
 <?php }?>
 <?php if (isset($config['trade'])){?>
 <td class="td_l_c"><?php echo $row['trade']?></td>
 <?php }?>


 <?php if (isset($config['start'])){?>
 <td class="td_l_c"><?php echo $row['start']?></td>
 <?php }?>
 <?php if (isset($config['source'])){?>
 <td class="td_l_c"><?php echo $row['source']?></td>
 <?php }?>
<?php if (isset($config['linkman'])){?>
 <td class="td_l_c"><?php echo $row['linkman']?></td>
 <?php }?>
 <?php if (isset($config['job'])){?>
 <td class="td_l_c"><?php echo $row['job']?></td>
 <?php }?>
 <?php if (isset($config['mobile'])){?> 
 <td class="td_l_c"><?php echo $row['mobile']?></td>
 <?php }?>
  <?php if (isset($config['adddate'])){?>
 <td class="td_l_c"><?php echo $row['adddate']?></td>
 <?php }?>
  

 <?php if (isset($config['adduser'])){?>
 <td class="td_l_c"><?php echo $row['adduser']?></td>
 <?php }?>
 </tr>
 <?php }?>
 </table>